package com.cloud.code.线程池.demo;

import lombok.extern.slf4j.Slf4j;

/**
 * Created with IntelliJ IDEA.
 * User: JIE
 * Date: 2021/4/28
 * Time: 23:24
 * Description:
 */
@Slf4j
public class AsyncServiceImpl implements AsyncService{


    @Override
    public void executeAsync() {
        log.info("task start ");
        try{
            Thread.sleep(1000);
        }catch(Exception e){
            e.printStackTrace();
        }
        log.info("task end");
    }
}
